package com.liner.homework.first;

public class Dog extends Animal implements Swim{


    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(name + "在吃骨头...");
    }

    public void lookHome(){
        System.out.println(name + "正在看家...");
    }


    @Override
    public void swim() {
        System.out.println(name + "在狗刨");
    }
}
